package com.jinbiao.quasar.model;

import lombok.Data;
import org.sagacity.sqltoy.config.annotation.Column;
import org.sagacity.sqltoy.config.annotation.Entity;

import java.io.Serializable;
import java.sql.Types;

@Data
@Entity(tableName = "sys_user_online")
public class SysUserOnline implements Serializable {
    @Column(name = "username", type = Types.VARCHAR)
    private String username;
    @Column(name = "token", type = Types.VARCHAR)
    private String token;

    public SysUserOnline(String username, String token) {
        this.username = username;
        this.token = token;
    }

    public SysUserOnline(String username) {
        this.username = username;
    }

    public SysUserOnline() {
    }
}
